<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>js对象</title>
		<script>
			var o={name:"李傲平",age:22,married:false,selfIntro:function(){
				alert(this.name+","+this.age+",结婚了？"+this.married+",手机号："+this.phone);
			}};
			o.selfIntro();
			o.age++;
			alert("age："+o["age"]);
			alert(">>>");
			o["selfIntro"]();
			
			o.phone="1388844844";
			o.selfIntro();
			//列举所有的属性和值
			delete o.age;
			alert("删除年龄后：");
			o.selfIntro();
		</script>
	</head>
	<body>
	</body>
</html>